package personal.hrsw.mybatisplusdemo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import personal.hrsw.mybatisplusdemo.domain.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author Administrator
* @description 针对表【admin】的数据库操作Mapper
* @createDate 2025-04-24 09:27:23
* @Entity personal.hrsw.mybatisplusdemo.domain.Admin
*/
@Mapper
public interface AdminMapper extends BaseMapper<Admin> {
    @Select("select * from admin where username=#{username} and password=#{password}")
    Admin selectByNameAndPwd(String username, String password);
}




